﻿@model KRM.Core.Voucher
@{
    ViewBag.Title = "Voucher Management";
    Layout = "/Views/Shared/_Layout.cshtml";
}
<div class="container-fluid">
    <div class="box">
        <div class="box-title">
            <h3><i class="icon-gift"></i>Voucher Management</h3>
        </div>
        <div class="row-fluid">
            <div class="span3" >
                <fieldset >
                    <legend>Filter</legend>
                    @Html.Partial("Partial/_MessageResult")
                    <form action="/Voucher/VoucherManagement" class="left form-inline nomargin  " method="POST" id = "frVoucherFilter">
                        <div class="control-group">
                            <span>Filter By Reason</span>
                            @Html.DropDownList("VoucherReasonID", null, new { required = "required", onchange="loadvouchers(this.value)",style="width: 100%;"})
                        
                        </div>   
                        <div class="control-group" id="grVoucherCode"style="height:370px" >
                            <div class="row-fluid" id="grVoucherCode-MessageResult">
                            </div>
                            <div class="row-fluid"style="height:100%">
                                @Html.ListBox("lbxVoucherCode", null,new { style = "height:100%;width: 100%;" ,onchange="loadvoucherdetail(this.value)" })
                            </div>
                        </div>
                        <div class="control-group">  
                               <button type="button" class="btn btn-primary" onclick="PopupCenter('/voucher/ManageGrouponVouchers/',860, 600)">Manage Groupon Vouchers</button>
                        </div>
                    </form>
                </fieldset>
            </div>
            <div class="span9" >
                <fieldset> 
                    <legend>Voucher Details</legend>
                    <div id="VoucherDetail">
                        <div id="VoucherDetail-MessageResult"></div>
                        <form action="/voucher/voucherdetail" method="POST" id="frVoucherDetail" class="row-fluid form-horizontal nomargin">
                        </form>
                    </div>
                </fieldset>
            </div>
        </div>
        <div class="row-fluid">
                <fieldset> 
                    <legend>Customer List</legend>
                    <div id="CustomerList">
                        <div class="row-fluid" id="VoucherCustomer-MessageResult"></div>
                    </div>
               </fieldset> 
        </div>
        </div>
    </div>



